package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CaseAggregatedActivityMapper;
import com.ruoyi.system.domain.CaseAggregatedActivity;
import com.ruoyi.system.service.ICaseAggregatedActivityService;
import com.ruoyi.common.core.text.Convert;

/**
 * 病例聚集性活动信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-03
 */
@Service
public class CaseAggregatedActivityServiceImpl implements ICaseAggregatedActivityService 
{
    @Autowired
    private CaseAggregatedActivityMapper caseAggregatedActivityMapper;

    /**
     * 查询病例聚集性活动信息
     * 
     * @param id 病例聚集性活动信息主键
     * @return 病例聚集性活动信息
     */
    @Override
    public CaseAggregatedActivity selectCaseAggregatedActivityById(Long id)
    {
        return caseAggregatedActivityMapper.selectCaseAggregatedActivityById(id);
    }

    /**
     * 查询病例聚集性活动信息列表
     * 
     * @param caseAggregatedActivity 病例聚集性活动信息
     * @return 病例聚集性活动信息
     */
    @Override
    public List<CaseAggregatedActivity> selectCaseAggregatedActivityList(CaseAggregatedActivity caseAggregatedActivity)
    {
        return caseAggregatedActivityMapper.selectCaseAggregatedActivityList(caseAggregatedActivity);
    }

    /**
     * 新增病例聚集性活动信息
     * 
     * @param caseAggregatedActivity 病例聚集性活动信息
     * @return 结果
     */
    @Override
    public int insertCaseAggregatedActivity(CaseAggregatedActivity caseAggregatedActivity)
    {
        return caseAggregatedActivityMapper.insertCaseAggregatedActivity(caseAggregatedActivity);
    }

    /**
     * 修改病例聚集性活动信息
     * 
     * @param caseAggregatedActivity 病例聚集性活动信息
     * @return 结果
     */
    @Override
    public int updateCaseAggregatedActivity(CaseAggregatedActivity caseAggregatedActivity)
    {
        return caseAggregatedActivityMapper.updateCaseAggregatedActivity(caseAggregatedActivity);
    }

    /**
     * 批量删除病例聚集性活动信息
     * 
     * @param ids 需要删除的病例聚集性活动信息主键
     * @return 结果
     */
    @Override
    public int deleteCaseAggregatedActivityByIds(String ids)
    {
        return caseAggregatedActivityMapper.deleteCaseAggregatedActivityByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除病例聚集性活动信息信息
     * 
     * @param id 病例聚集性活动信息主键
     * @return 结果
     */
    @Override
    public int deleteCaseAggregatedActivityById(Long id)
    {
        return caseAggregatedActivityMapper.deleteCaseAggregatedActivityById(id);
    }
}
